package com.jingdianjichi.auth.common.enums;

import lombok.Getter;

@Getter
public enum AuthPermissionStausEnum {

    OPEN(0,"启用"),
    CLOSE(1,"未启用");

    public int code;

    public String desc;

    AuthPermissionStausEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }
    public static AuthPermissionStausEnum getByCode(int codeVal){
        for(AuthPermissionStausEnum resultCodeEnum : AuthPermissionStausEnum.values()){
            if(resultCodeEnum.code == codeVal){
                return resultCodeEnum;
            }
        }
        return null;
    }
}
